<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of csrfable
 *
 * @author slaber
 */
class Core_Model_Csrfable implements Core_Model_Mainable
{
    public $redirect;
    //put your code here
    public function main(array $variables = null) {
        if(!isset($variables['csrf_token']) && ($variables['csrf_token'] != $_SESSION['csrf_token'])){
            $this->redirect = new Login_Data_Loginsredirect;
            $this->redirect->main($variables);
        }
        
    }
}


